﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="baocaothongke.aspx.cs"
    Inherits="Cucre.WebForm18" Title="MUARE.VN - Báo Cáo Thống Kê" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="page_content">
        <div style="padding-left: 6px;">
            <div class="clear">
            </div>
            <div class="br">
            </div>
            <div class="content_home">
                <%-- vùng thể hiện menu --%>
                <div class="ch_1 font">
                    <div class="l">
                        <div class="ll">
                        </div>
                        <div class="lc">
                            <ul id="tab_menu">
                                <li id="tabmnu_1"><a href="QuanLy.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    Tin Khuyến Mãi&nbsp;</span><span class="tab_mnu_r"> </span></a></li>
                                <li id="tabmnu_4"><a href="quanlydondathang.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">Đơn Đặt Hàng&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="tabmnu_2"><span class="tab_mnu_r"></span></li>
                                <li id="tabmnu_3"><a href="QuanLyDoanhNghiep.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">Doanh Nghiệp&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li1"><a href="quanlythanhvien.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">THÀNH VIÊN&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li2"><a href="QuanLyComment.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    COMMENT&nbsp;</span> <span class="tab_mnu_r"></span></a></li>
                                <li id="Li3"><a href="baocaothongke.aspx"><span class="tab_mnu_l_curent"></span><span
                                    class="tab_mnu_c_curent">THỐNG KÊ&nbsp;</span> <span class="tab_mnu_r_curent"></span>
                                </a></li>
                            </ul>
                        </div>
                        <div class="lr">
                        </div>
                    </div>
                    <div class="r">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <%-- het vung menu --%>
                <%-- vùng làm việc --%>
                <div class="ch_2">
                    <h2 align="center">
                        TRANG BÁO CÁO THỐNG KÊ</h2>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                            </asp:ToolkitScriptManager>
                            <div id="working_area">
                                <div>
                                    <div id="Select_Type" align="center">
                                        Chọn Loại Báo Cáo : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="TypeReport_DropDownList" runat="server" align="center" AutoPostBack="true"
                                            OnSelectedIndexChanged="TypeReport_DropDownList_SelectedIndexChanged">
                                            <asp:ListItem>Báo Cáo Theo Cucre.vn</asp:ListItem>
                                            <asp:ListItem>Báo Cáo Theo Doanh Nghiệp</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tháng Báo
                                        Cáo :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="ThangBaoCao_DropDownList" runat="server" align="center" AutoPostBack="true"
                                            OnSelectedIndexChanged="ThangBaoCao_DropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Năm Báo
                                        Cáo :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="NamBaoCao_DropDownList" runat="server" align="center" AutoPostBack="true"
                                            OnSelectedIndexChanged="NamBaoCao_DropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div style="height: 20px" align="center">
                                </div>
                                <div id="DivDanhSachDoanhNghiep" runat="server" visible="false">
                                    <h3 style="margin-top: 20px">
                                        Danh Sách Các Doanh Nghiệp :
                                    </h3>
                                    <div id="GridView1" align="center">
                                        <asp:GridView ID="DSDoanhNghiep_GridView" runat="server" PageSize="5" AutoGenerateColumns="False"
                                            AllowPaging="true" BorderStyle="Groove" OnPageIndexChanging="DSDoanhNghiep_GridView_PageIndexChanging"
                                            OnSelectedIndexChanging="DSDoanhNghiep_GridView_SelectedIndexChanging">
                                            <PagerStyle Font-Underline="True" Font-Bold="true" />
                                            <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="25px" />
                                            <HeaderStyle BorderStyle="Groove" BackColor="#5D7B9D" Font-Bold="true" ForeColor="White"
                                                Height="25px" />
                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="20px" />
                                            <Columns>
                                                <asp:BoundField DataField="IDPROVIDER" HeaderText="ID" ReadOnly="True" SortExpression="IDPROVIDER" />
                                                <asp:BoundField DataField="COMPANY_NAME" HeaderText="Company Name" ReadOnly="True"
                                                    SortExpression="COMPANY_NAME" />
                                                <asp:BoundField DataField="EMAIL" HeaderText="Company Email" ReadOnly="True" SortExpression="EMAIL" />
                                                <asp:BoundField DataField="PHONE" HeaderText="Number Phone" ReadOnly="True" SortExpression="PHONE" />
                                                <asp:BoundField DataField="ADDRESS" HeaderText="Company Address" ReadOnly="True"
                                                    SortExpression="ADDRESS" />
                                                <asp:CommandField SelectText="View Report" ShowSelectButton="true" ItemStyle-ForeColor="Blue"
                                                    ItemStyle-Font-Underline="True" />
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                    <div class="br">
                                        <hr />
                                    </div>
                                </div>
                                <div>
                                    <h3>
                                        Báo Cáo Thông Kê Trong Tháng
                                        <asp:Label ID="Label_Month" runat="server"> : </asp:Label>
                                    </h3>
                                </div>
                                <div align="center">
                                    <asp:GridView ID="BaoCaoTheoTinKhuyenMai_GridView" runat="server" AutoGenerateColumns="False"
                                        BorderStyle="Groove">
                                        <PagerStyle Font-Underline="True" Font-Bold="true" />
                                        <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="25px" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" Height="25px" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="20px" />
                                        <Columns>
                                            <asp:BoundField DataField="IDPRODUCT" HeaderText="ID Product" ReadOnly="True" SortExpression="IDPRODUCT">
                                            </asp:BoundField>
                                            <asp:BoundField DataField="PROVIDER_NAME" HeaderText="Provider" ReadOnly="True" SortExpression="PROVIDER_NAME" />
                                            <asp:BoundField DataField="Name_Product" HeaderText="Name" ReadOnly="True" SortExpression="Name_Product" />
                                            <asp:BoundField DataField="TIME_START" HeaderText="Time_Start" ReadOnly="True" SortExpression="TIME_START" />
                                            <asp:BoundField DataField="TIME_STOP" HeaderText="Time_Stop" ReadOnly="True" SortExpression="TIME_STOP" />
                                            <asp:BoundField DataField="CITY" HeaderText="City" ReadOnly="True" SortExpression="CITY" />
                                            <asp:BoundField DataField="TOTAL_ORDER" HeaderText="Total Order" ItemStyle-Font-Bold="True" />
                                            <asp:BoundField DataField="TOTAL_INCOME" HeaderText="Income (VND)" ItemStyle-Font-Bold="True" />
                                        </Columns>
                                    </asp:GridView>
                                </div>
                                <div align="right">
                                    <h4>
                                        Tổng Doanh Thu :
                                        <asp:Label ID="LabelTotalIncome" runat="server" Text="0"></asp:Label>&nbsp;&nbsp;&nbsp;
                                        VND &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h4>
                                </div>
                            </div>
                            <%-- hết vùng làm việc --%>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <div style="background: url(images/temp2_3.gif) no-repeat left bottom; padding-left: 18px;
                    height: 11px;">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
